using OrchardCore.ContentManagement;

namespace Lombiq.HelpfulLibraries.OrchardCore.Contents;

/// <summary>
/// <see cref="ContentItem"/> 的状态。
/// </summary>
public enum PublicationStatus
{
    /// <summary>
    /// 仅用于查询以返回所有内容（无论发布状态如何）或指示状态未设置。
    /// </summary>
    Any,

    /// <summary>
    /// 内容已发布（例如，点击发布按钮后）。
    /// </summary>
    Published,

    /// <summary>
    /// 内容是草稿（例如，点击保存草稿按钮后）。
    /// </summary>
    Draft,

    /// <summary>
    /// Only used for querying to return either published or draft items.
    /// </summary>
    Latest,

    /// <summary>
    /// The content is deleted but remains in database as version history.
    /// </summary>
    Deleted,
}
